﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;


namespace Guline.Web.LiveModels.Models
{
    public class User
    {
        [Key]
        public int ID { get; set; }
        public string username { get; set; }
        public int type { get; set; }
        public string email { get; set; }
        public string phone { get; set; }
        public string IP { get; set; }
        public string link { get; set; }
        public string image { get; set; }
        public string color { get; set; }
        public int position { get; set; }
        public string title_box { get; set; }

        [InverseProperty("user")]
        public virtual ICollection<Message> Messages { get; set; }

        [InverseProperty("user")]
        public virtual ICollection<Room_member> Room_members { get; set; }
    }
}
